package com.teradata.factory.abstr;

import com.teradata.factory.Milk;
import com.teradata.factory.common.MengniuFactory;
import com.teradata.factory.common.TelunsuFactory;
import com.teradata.factory.common.YiliFactory;

/**
 * 混合了抽象工厂和一般工厂方法
 */
public class MixMilkFactoryImpl extends AbstractFactory {

    @Override
    public Milk getMengniu() {
        return new MengniuFactory().getMilk();
    }

    @Override
    public Milk getYili() {
        return new YiliFactory().getMilk();
    }

    @Override
    public Milk getTelunsu() {
        return new TelunsuFactory().getMilk();
    }
}
